<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2011-11-02 15:22:21
         compiled from "D:\www\beimuaihui\views/widgets\joomla15_crawl.tpl" */ ?>
<?php /*%%SmartyHeaderCode:170614eb0efad73fab5-71918187%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '65e71305b688f3ebf16fdb9017387ff6c394a2ff' => 
    array (
      0 => 'D:\\www\\beimuaihui\\views/widgets\\joomla15_crawl.tpl',
      1 => 1320130971,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '170614eb0efad73fab5-71918187',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form id="joomla15_crawl_form" method="post">
	category:<!-- <input type="text" name="catid" id="catid" maxlength="100"	tabindex="2" value="" style="width:404px;height:22px;" /> --> 
	<select id="catid" name="catid"  style="width:404px;height:32px;" tabindex="2">
		<?php  $_smarty_tpl->tpl_vars['section_name'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['section_id'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value[0]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['section_name']->key => $_smarty_tpl->tpl_vars['section_name']->value){
 $_smarty_tpl->tpl_vars['section_id']->value = $_smarty_tpl->tpl_vars['section_name']->key;
?>
		    <optgroup label="<?php echo $_smarty_tpl->tpl_vars['section_name']->value;?>
">
		    	 <?php  $_smarty_tpl->tpl_vars['cat_name'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['cat_id'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value[$_smarty_tpl->getVariable('section_id')->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['cat_name']->key => $_smarty_tpl->tpl_vars['cat_name']->value){
 $_smarty_tpl->tpl_vars['cat_id']->value = $_smarty_tpl->tpl_vars['cat_name']->key;
?>
				   	<option value ="<?php echo $_smarty_tpl->tpl_vars['cat_id']->value;?>
">&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['cat_name']->value;?>
</option>
				  <?php }} ?>
		    </optgroup>
		<?php }} ?>
	</select> <br /><br />
	
	url: <input type="text" name="url" id="url" maxlength="500" tabindex="2" value=""  style="width:404px;height:22px;" /> <br />
	<input id="joomla15_crawl_submit" type="button" value="开始" />
</form>
<script type="text/javascript">
	jQuery(document).ready(function() {
		$("#joomla15_crawl_submit").click(function() {
			$.post("<?php echo @BAOGG_BASE_URL;?>
microblog/widget/get-data/widget_id/joomla15_crawl", $("#joomla15_crawl_form").serialize(),		   
				function(data) {
					alert("Data Loaded: " + data);
				});
			});
		$("#content_se_search").css("display","none")
		});
</script>